%%%-------------------------------------------------------------------
%%% @author root
%%% @copyright (C) 2017, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 23. Aug 2017 上午9:09
%%%-------------------------------------------------------------------
-module(esockd_debug).
-author("root").

%% API
-export([debug/0]).


loop_sleep() ->
	timer:sleep(5000),
	loop_sleep().

debug() ->
	%% Start your dependencies here
    application:start(lager),
    application:start(gen_logger),
	application:start(esockd),
	esockd:open(echo, {"192.168.1.145", 6000}, [{sockopts, [binary, {reuseaddr, true}]}], {simple_echo_server, start_link, []}),
	observer:start(),
	loop_sleep().
